/*
 * Copyright (c) 2021. Moses All Right Reserved
 */

package com.moses.design_patterns.builder.abstract_builder;

/**
 * @author Moses
 * @email shenhuohui@gmail.com
 * @date 2021/4/10 11:30
 */
public class Client {
    public static void main(String[] args) {
        // 抽象构造模式，把 Builder 抽象化，由实现类来构造
        AbstractBuilder builder = new ProductABuilder();
        ProductA productA = (ProductA) builder.build();
        builder = new ProductBBuilder();
        ProductB productB = (ProductB) builder.build();
    }
}
